<?php

/**
 * 项目接口
 */


/**
 * Fxotary模板接口
 */
$router->group(['prefix'=>'fxotary', 'namespace'=>'Fxotary'], function () use ($router) {
    //后台接口
    $router->group(['prefix'=>'admin', 'namespace'=>'Admin'], function () use ($router) {
        //功能菜单
        $router->post('leftmenu', 'ActionController@leftMenu');
        //管理员
        $router->post('admin/index', 'AdminController@getIndex');
        $router->post('admin/one', 'AdminController@getOne');
        $router->post('admin/modify', 'AdminController@modify');
        $router->post('admin/pwd', 'AdminController@setPwd');
        //功能管理
        $router->post('action/index', 'ActionController@getIndex');
        //$router->post('action/one', 'ActionController@getOne');
        $router->post('action/modify', 'ActionController@modify');
        //业务
        $router->post('yewu/index', 'YewuController@getIndex');
        $router->post('yewu/one', 'YewuController@getOne');
        $router->post('yewu/modify', 'YewuController@modify');
    });
    //前台接口
    $router->group(['prefix'=>'front', 'namespace'=>'Front'], function () use ($router) {
        $router->post('leftmenu', 'MenuController@leftMenu'); //页面菜单
        $router->post('foot', 'MenuController@foot'); //页脚内容
        $router->post('home', 'DetailController@getHomeList'); //首页
        $router->post('home2', 'DetailController@getHome2List'); //首页2
        $router->post('about', 'DetailController@getAbout'); //关于我们
        $router->post('service/list', 'DetailController@getServiceList'); //服务列表
        $router->post('service/detail', 'DetailController@getServiceDetail'); //服务详情
        $router->post('portfolio/list', 'DetailController@getPortfolioList'); //投资列表
        $router->post('portfolio/grid', 'DetailController@getPortfolioGrid'); //投资网格
        $router->post('portfolio/detail', 'DetailController@getPortfolioDetail'); //投资详情
        $router->post('team', 'DetailController@getTeam'); //团队
        $router->post('blog/list', 'DetailController@getBlogList'); //博客列表
        $router->post('blog/grid', 'DetailController@getBlogGrid'); //博客网格
        $router->post('blog/detail', 'DetailController@getBlogDetail'); //博客详情
        $router->post('contact', 'DetailController@getContact'); //联系方式
        $router->post('user/add', 'DetailController@addUser'); //保存用户
    });
});
